package code.example.service;

import java.util.ArrayList;
import java.util.List;

/**
 * A structure to store the category information
 * 	 
 * @author jerry.feng Date: 2008-12-26
 */
public class Category {

	private String dir;
	
	private String caption;
	
	private List<Object> items;
	
	
	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}

	public List<Object> getItems() {
		if (items == null) {
			items = new ArrayList<Object>();
		}
		return items;
	}

	public void setItems(List<Object> items) {
		this.items = items;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public void addItem(Object item) {
		getItems().add(item);
	}
}
